/**
 * 
 */
package com.ld.tamp.web.bean;

import java.io.Serializable;

import weixin.popular.bean.ticket.Ticket;

/**
 * @author KeYang
 *
 */
public class AuthorizerJsTicket implements Serializable {
	
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 7728846408792255338L;
	
	
	private String appid;
	private String ticket;
	private Long expireTime;

	public AuthorizerJsTicket() {

	}

	/**
	 * @param appidgong
	 * @param ticket
	 * @param expireTime
	 */
	public AuthorizerJsTicket(String appid, Ticket ticket) {
		super();
		this.appid = appid;
		this.ticket = ticket.getTicket();
		this.expireTime = ticket.getExpires_in() * 1000 + System.currentTimeMillis();
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public Long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Long expireTime) {
		this.expireTime = expireTime;
	}

}
